package com.ky.gp.app.service;

import com.ky.common.param.CommentAdd;
import com.ky.common.vo.R;
import com.ky.gp.app.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "gp-course-server",configuration = OpenFeignConfig.class)
public interface CommentFeign {


    @GetMapping("/course/comment/courseId/{courseId}")
    R getCommentList(@PathVariable("courseId")Integer courseId);

    @GetMapping("/course/comment/submitComment")
    R submitComment(CommentAdd commentAdd);
}
